<div class="layui-form" lay-filter="layPopup" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">ID</label>
        <div class="layui-input-block">
            <script template type="text/html">
                <input type="text" readonly value="{{ d.params.id }}" class="layui-input">
            </script>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">预览</label>
        <div class="layui-input-block">
            <script template type="text/html">
                {{# if(d.params.mime_type.indexOf('image/') > -1){ }}
                <img class="img-show" src="{{ d.params.full_url }}" style="width: 150px"/>
                {{# }else if(d.params.mime_type.indexOf('audio/') > -1){ }}
                <img style="max-height: 60px" src="../static/images/music1.png" style="width: 150px"/>
                {{# }else{ }}
                <img style="max-height: 60px" src="../static/images/file1.png" style="width: 150px"/>
                {{# } }}
            </script>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">细目</label>
        <div class="layui-input-block">
            <script template type="text/html">
                <input type="text" readonly value="{{ d.params.topic }}" class="layui-input">
            </script>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">物理路径</label>
        <div class="layui-input-block">
            <script template type="text/html">
                <input type="text" readonly value="{{ d.params.url }}" class="layui-input">
            </script>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">图片宽度</label>
        <div class="layui-input-block">
            <script template type="text/html">
                <input type="text" readonly value="{{ d.params.width }}" class="layui-input">
            </script>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">图片高度</label>
        <div class="layui-input-block">
            <script template type="text/html">
                <input type="text" readonly value="{{ d.params.height }}" class="layui-input">
            </script>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">原使名称</label>
        <div class="layui-input-block">
            <script template type="text/html">
                <input type="text" readonly value="{{ d.params.name }}" class="layui-input">
            </script>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">文件大小</label>
        <div class="layui-input-block">
            <script template type="text/html">
                <input type="text" readonly value="{{ d.params.size }}" class="layui-input">
            </script>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">mime类型</label>
        <div class="layui-input-block">
            <script template type="text/html">
                <input type="text" readonly value="{{ d.params.mime_type }}" class="layui-input">
            </script>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">上传(引用)次数</label>
        <div class="layui-input-block">
            <script template type="text/html">
                <input type="text" readonly value="{{ d.params.quote }}" class="layui-input">
            </script>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">存储方式</label>
        <div class="layui-input-block">
            <script template type="text/html">
                <input type="text" readonly value="{{ d.params.storage }}" class="layui-input">
            </script>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">sha1</label>
        <div class="layui-input-block">
            <script template type="text/html">
                <input type="text" readonly value="{{ d.params.sha1 }}" class="layui-input">
            </script>
        </div>
    </div>
</div>
<script src="../web/res/js/routine/attachment/info.js"></script>
